package message;

import entity.ChessUser;
import socket.ChessClient;

import java.util.List;

public class ServerUserListMessage extends BaseMessage {
    private List<ChessUser> chessUserList;

    public ServerUserListMessage(List<ChessUser> chessUserList) {
        this.chessUserList = chessUserList;
    }

    @Override
    public void sendToServer() {

    }

    @Override
    public void selfExecute() {
        ChessClient.getInstance().getRoomList().showUserList(chessUserList);
    }
}
